import { Table } from 'antd';
import React, { Component } from 'react';

class StandardTable extends Component {
  static defaultProps = {
    dataSource: [], // 表格数据
    loading: false, // 表格是否在初始化中
  };

  constructor(props) {
    super(props);
    this.state = {
      pageSize: 10, // 每页默认展示数据条数
      current: 1, // 当前展示页数
    };
  }

  render() {
    const { pageSize,  current } = this.state;

    const { dataSource, loading } = this.props;

    return (
      <Table
        loading={loading}
      />
    )
  }
}

export default StandardTable;
